import request from '@/utils/request'

// 查询预警段的相对预警列表
export function listWarnRelative(query) {
    return request({
        url: '/warn/warnRelative/list',
        method: 'get',
        params: query
    })
}

// 查询预警段的相对预警详细
export function getWarnRelative(id) {
    return request({
        url: '/warn/warnRelative/' + id,
        method: 'get'
    })
}

// 新增预警段的相对预警
export function addWarnRelative(data) {
    return request({
        url: '/warn/warnRelative',
        method: 'post',
        data: data
    })
}

// 修改预警段的相对预警
export function updateWarnRelative(data) {
    return request({
        url: '/warn/warnRelative',
        method: 'put',
        data: data
    })
}

// 删除预警段的相对预警
export function delWarnRelative(id) {
    return request({
        url: '/warn/warnRelative/' + id,
        method: 'delete'
    })
}
